package com.ruoyi.tranShort.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 班别管理对象 short_class_grade
 * 
 * @author ruoyi
 * @date 2021-08-15
 */
public class ShortClassGrade extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 班级名称 */
    @Excel(name = "班级名称")
    private String className;

    /** 排序字段 */
    @Excel(name = "排序字段")
    private Long sortNum;

    private List<ShortPerson> shortPersonList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClassName(String className) 
    {
        this.className = className;
    }

    public String getClassName() 
    {
        return className;
    }
    public void setSortNum(Long sortNum) 
    {
        this.sortNum = sortNum;
    }

    public Long getSortNum() 
    {
        return sortNum;
    }

    public List<ShortPerson> getShortPersonList() {
        return shortPersonList;
    }

    public void setShortPersonList(List<ShortPerson> shortPersonList) {
        this.shortPersonList = shortPersonList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("className", getClassName())
            .append("createTime", getCreateTime())
            .append("sortNum", getSortNum())
            .toString();
    }
}
